#!/bin/sh
unset SESSION_MANAGER
[ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup
[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
xsetroot -solid grey
vncconfig -iconic &
temp=$(ps aux | grep [f]irefox | awk '{print $2}')
[ -n "$temp" ] && kill $temp > /dev/null 2>&1
firefox --display=:1 > /dev/null 2>&1 &